package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.PersonnelDao;
import io.renren.entity.Disappearalarmdetal;
import io.renren.entity.Personnel;
import io.renren.service.PersonnelService;



@Service("personnelService")
public class PersonnelServiceImpl implements PersonnelService {
	@Autowired
	private PersonnelDao personnelDao;
	
	@Override
	public Personnel queryObject(Integer id){
		return personnelDao.queryObject(id);
	}
	
	@Override
	public List<Personnel> queryList(Map<String, Object> map){
		return personnelDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return personnelDao.queryTotal(map);
	}
	
	@Override
	public void save(Personnel personnel){
		personnelDao.save(personnel);
	}
	
	@Override
	public void update(Personnel personnel){
		personnelDao.update(personnel);
	}
	
	@Override
	public void delete(Integer id){
		personnelDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		personnelDao.deleteBatch(ids);
	}

	@Override
	public List<Personnel> queryListByIdGroupIdWxUser(Map<String, Object> map) {
		return personnelDao.queryListByIdGroupIdWxUser(map);
	}

	@Override
	public void addBatch(List<Personnel> list) {
		// TODO Auto-generated method stub
		personnelDao.addBatch(list);
		
	}
	
	
	
}
